﻿#pragma once

#include <QtWidgets/QWidget>
#include "ui_Qt8ButtonsApp.h"

class Qt8ButtonsApp : public QWidget
{
    Q_OBJECT

public:
    Qt8ButtonsApp(QWidget *parent = nullptr);
    ~Qt8ButtonsApp();
	void initLineEdit();
	void initTextEdit();

public slots:
	void on_checkBoxRead_clicked();
	void on_checkBoxRun_clicked();
	void checkBoxStateChangeSlot(int state);
	void on_radioButtonMale_clicked();
	void buttonClickedSlot(int id);
	void provinceComboBoxItemChangeSlot(int index);
	void on_fontComboBox_currentFontChanged(const QFont &font);
	void on_btnRegexp_clicked();
	void on_lineEditName_editingFinished();
	void on_textEdit_textChanged();
	void on_btnSetText_clicked();
	void on_btnReadDateTime_clicked();
	void on_btnSetTime_clicked();
	void on_btnSetDate_clicked();
	void on_btnSetDateTime_clicked();
	void on_conflictButton_clicked();

private:
    Ui::Qt8ButtonsAppClass ui;
	QButtonGroup *m_pButtonGroup = nullptr;
	QScrollBar *m_pHorizontalScrollBar = nullptr;
	QScrollBar *m_pVerticalScrollBar = nullptr;
};
